/**
 * This file is a part of MediaDrop (http://www.mediadrop.video),
 * Copyright 2009-2014 MediaDrop contributors
 * For the exact contribution history, see the git revision log.
 * The source code contained in this file is licensed under the GPLv3 or
 * (at your option) any later version.
 * See LICENSE.txt in the main project directory, for more information.
 **/

.for-sbox, .fitted-sbox { display: none; }

#sbox-overlay {
	position: absolute;
	background-color: #000;
	left: 0px;
	top: 0px;
	zoom: 1;
}
#sbox-window {
	position: absolute;
	text-align: left;
	overflow: visible;
}
#sbox-btn-close {
	position: absolute;
	width: 30px;
	height: 30px;
	right: 0;
	top: 0;
	background: url('../images/layout/sbox-close.png') no-repeat center;
	border: none;
	z-index: 99;
}
.ssbox-btn-close {
	background-image: url('../images/squeezebox/box-close.gif');
}
.sbox-loading #sbox-content {
	background-image: url('../images/icons/spinner.gif');
	background-repeat: no-repeat;
	background-position: center;
}
#sbox-content {
	clear: both;
	overflow: auto;
	height: 100%;
	width: 100%;
}
.sbox-content-image#sbox-content {
	overflow: visible;
}
#sbox-image {
	display: block;
}
.sbox-content-image img {
	display: block;
	width: 100%;
	height: 100%;
}
.sbox-content-iframe#sbox-content {
	overflow: visible;
}

/* Hides scrollbars */
.body-overlayed {
	overflow: hidden;
}
/* Hides flash (Firefox problem') and selects (IE') */
.body-overlayed embed, .body-overlayed object, .body-overlayed select {
	visibility: hidden;
}
#sbox-window embed, #sbox-window object, #sbox-window select {
	visibility: visible;
}

/* Shadows */
.sbox-bg {
	display: none !important;
}
#sbox-content .box-round {
	display: none !important;
}

/* header */
#sbox-content .box {
	border: 0;
	background: none;
	margin: 0;
}
.box-wide {
	width: 830px;
}
#sbox-content .box-head {
	background: url('../images/layout/sbox-top.png') no-repeat top;
	height: 44px;
	width: 580px;
	padding: 12px 25px 0 25px;
	border: 0;
	line-height: 43px;
}
#sbox-content .box-wide .box-head {
	width: 780px;
	background-image: url('../images/layout/sbox-wide-top.png');
}
#sbox-content .box-head .box-head-sec {
	margin-top: 12px;
	margin-right: 5px;
}
#sbox-content .box-content {
	background: url('../images/layout/sbox-content.png') repeat-y;
	width: 580px;
	padding: 10px 25px;
	/* tags delete confirmation*/
	margin-bottom: 0;
}
#sbox-content .box-wide .box-content {
	width: 780px;
	background-image: url('../images/layout/sbox-wide-content.png');
}
#sbox-content table.box-content {
	padding: 0 16px;
	width: 628px;
}
#sbox-content .box-wide table.box-content {
	width: 830px;
}
#sbox-content .box-bottom {
	height: 29px;
	width: 630px;
	background: url('../images/layout/sbox-bottom.png') no-repeat;
}
#sbox-content .box-wide .box-bottom {
	width: 830px;
	background-image: url('../images/layout/sbox-wide-bottom.png');
}
#sbox-content .box-foot {
	background: url('../images/layout/sbox-bottom-buttons.png') no-repeat;
	border: 0;
	width: 580px;
	height: 54px;
	padding: 8px 25px;
}
#sbox-content .box-wide .box-foot {
	width: 780px;
	background-image: url('../images/layout/sbox-wide-bottom-buttons.png');
}

/* Custom formatting for elements inside a modal dialogue */
#sbox-content .box-content > ul.field-list {
	margin: -10px 0;
}
#sbox-content .box-content p {
	margin: 0;
	padding: 0 10px 10px 10px;
}
#sbox-content .box-content h2 {
	font-size: 16px;
	margin: 10px;
}
#sbox-content .box-content .numbers,
#sbox-content .box-content .bullets {
	padding: 0 10px 10px 10px;
}
#sbox-content em {
	color: #AC3D4A; /* XXX: This colour should be edited/approved by a designer */
}

/* XXX: This rule was causing our TextAreas to have pasting issues in Safari, and
 *      Chrome. It has been removed, and so far no adverse effects are seen.
#sbox-content .box-content > *:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}
*/
#sbox-content .box-content > *:first-child {
	margin-top: 0;
	padding-top: 0;
}
